<template>
  <div>
    <p>请选择喜欢的的专栏</p>
    <input type="checkbox" v-model="arr" value="科幻" />科幻
    <input type="checkbox" v-model="arr" value="戏剧" />戏剧
    <input type="checkbox" v-model="arr" value="动漫" />动漫
    <input type="checkbox" v-model="arr" value="战争" />战争
    <input type="checkbox" v-model="arr" value="玄幻" />玄幻

    <ul v-if="arr.length > 0">
      <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [],
    };
  },
};
</script>

<style scoped></style>
